package com.lanchetech.dao;
import org.apache.ibatis.annotations.Param;

import com.lanchetech.entity.SecondRelationship;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SecondRelationshipMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SecondRelationship record);

    int insertSelective(SecondRelationship record);

    SecondRelationship selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SecondRelationship record);

    int updateByPrimaryKey(SecondRelationship record);

    SecondRelationship findOneBySuperiorIdAndSubordinateId(@Param("superiorId")Long superiorId,@Param("subordinateId")Long subordinateId);

    SecondRelationship findOneBySubordinateId(@Param("subordinateId")Long subordinateId);



}